package jcl;
import java.util.Scanner;

public class TestDemo {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextLine()){
            String str=scanner.nextLine();
            StringBuffer sb=new StringBuffer();
            for (int i = 0; i <str.length() ; i++) {
                char ch=str.charAt(i);
                String temp= String.valueOf(sb);
                if (!temp.contains(ch+"")){
                    sb.append(ch);
                }
            }
            System.out.println(sb);
        }
    }
}
